﻿using System;
using System.Collections.Generic;
using System.Text;
using Util.Panels;

namespace Util.Layout.Test.ViewModels
{
    class PanelsViewModel
    {
        public List<IResizableItemData> Datas { get; set; }
        public List<int> Lists { get; set; }

        public PanelsViewModel()
        {
            List<IResizableItemData> datas = new List<IResizableItemData>()
            {
                new class1(){Number=1 , WidthPix = 2, HeightPix = 2 },
                new class2(){Number=2 , CanClose = true},
                new class3(){Number=3, HeightPix = 2 },
                new class1(){Number=4 },
                new class2(){Number=5 },
                new class3(){Number=6 },
                new class1(){Number=7 },
                new class2(){Number=8,  },
                new class3(){Number=9 },
                new class1(){Number=10 },
                new class2(){Number=11 },
                new class3(){Number=12 },
                new class1(){Number=13 },
                new class2(){Number=14 },
                new class3(){Number=15 },
                new class1(){Number=16 },
                new class2(){Number=17 },
                new class3(){Number=18 },
                new class1(){Number=19 },
                new class2(){Number=20 },
                new class3(){Number=21 },
                new class1(){Number=22 },
                new class2(){Number=23 },
                new class3(){Number=24 },
                new class1(){Number=25 },
                new class2(){Number=26 },
                new class3(){Number=27 },
                new class1(){Number=28 },
                new class2(){Number=29 },
                new class3(){Number=30 },
            };
            //resizableItemsControl.ItemsSource = datas;

            List<int> list = new List<int>();
            for (int i = 0; i < 500; i++)
            {
                list.Add(i);
            }

            Datas = datas;
            Lists = list;
        }

    }

    public interface Iclass : IResizableItemData
    {
        int Number { get; set; }

    }


    public class class1 : MDIItemData
    {

    }

    public class class2 : MDIItemData
    {
    }

    public class class3 : MDIItemData
    {
    }
}
